package com.yundou.www.wrpc.core.face.impl;

import com.yundou.www.wrpc.core.annotation.WRpcServer;
import com.yundou.www.wrpc.core.face.UserService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wangweiwei
 * @since 2021/7/22
 */
@WRpcServer()
public class UserServiceImpl implements UserService {

    private List<String> allUserName = new ArrayList<>();


    @Override
    public void saveUser(String userName) {
        System.out.println("这里是保存方法的显示");

    }

    @Override
    public void saveUserId(String userName, Long id) {
        System.out.println("这里是保存方法的显示 3333333");
        System.out.println(userName);
        System.out.println(id);
    }

    @Override
    public List<String> getAllUserName() {
        allUserName.add("王伟伟");
        return allUserName;
    }
}
